{% extends "VozminoskiStoreBundle:Admin:layout.html.twig" %}
{% block content %}

<form action="{{ path('admin_category_create') }}" method="post" {{ form_enctype(form) }} class="form-horizontal">
    <fieldset>
        <legend>Catalog creation</legend>

        {{ form_errors(form) }}

        <div class="control-group">
            {{ form_label(form.name, 'Name',{ 'label_attr': {'class': 'control-label'} }) }}
            {{ form_errors(form.name) }}
            <div class="controls">
                {{ form_widget(form.name) }}
            </div>
        </div>

        <div class="control-group">
            {{ form_label(form.url, 'Url',{ 'label_attr': {'class': 'control-label'} }) }}
            {{ form_errors(form.url) }}
            <div class="controls">
                {{ form_widget(form.url) }}
            </div>
        </div>

        <div class="control-group">
            {{ form_label(form.order, 'Order',{ 'label_attr': {'class': 'control-label'} }) }}
            {{ form_errors(form.order) }}
            <div class="controls">
                {{ form_widget(form.order) }}
            </div>
        </div>

        <div class="control-group">
            {{ form_label(form.is_active, 'Is Active',{ 'label_attr': {'class': 'control-label'} }) }}
            {{ form_errors(form.is_active) }}
            <div class="controls">
                {{ form_widget(form.is_active) }}
            </div>
        </div>

        {{ form_rest(form) }}
     <button type="submit" class="btn btn-success">Create</button>
</form>

<div style="padding: 50px">
    <a href="{{ path('admin_category') }}" class="btn btn-primary">
        Back to the list
    </a>
</div>
{% endblock %}
